#!/usr/bin/env bash

export MISE_PYTHON_COMPILE=0
assert_contains "mise use python@3.12.3 2>&1" "cpython-"
assert_contains "mise x -- python --version" "Python 3.12.3"

rm mise.toml
mise rm python@3.12.3

echo '3.12.3' >.python-version
assert_contains "mise i 2>&1" "mise python@3.12.3"
assert_contains "mise x -- python --version" "Python 3.12.3"

mise settings idiomatic_version_file_disable_tools python
mise use python@3.13
assert_contains "mise x -- python --version" "Python 3.13"
